﻿package {
	import flash.display.Sprite;
	
	import com.mixmedia.error.SingletonError;	

	/**
	 * @author colin
	 */
	public class AS2 {
		static private var singletonCall:Boolean=false;
		static private var ins:AS2;
		static public function instance():AS2{
			singletonCall = true;
			if(ins==null)ins = new AS2();
			singletonCall = false;
			return ins;
		}

		public var root:Sprite;
		public function AS2(){
			if(singletonCall!=true)throw new SingletonError(this);
		}
	}
}
